package autowired.service.impl;

import autowired.bean.User;
import autowired.dao.UserDao;
import autowired.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * @author azzhu
 * @create 2020-08-14 16:03:09
 */
//@Component
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;
    @Override
    public void addUser(User user) {
        System.out.println("service save user....");
        userDao.add(user);
    }
}
